import { Component, OnInit } from '@angular/core';

// 接口导入
import { Term } from '../Interfaces/Term';
import { Router } from '@angular/router';

@Component({
  selector: 'app-setting',
  templateUrl: './setting.component.html',
  styleUrls: ['./setting.component.css']
})
export class SettingComponent implements OnInit {

  term: Term;

  activeMenu = '';

  constructor(
      private router: Router
  ) { }

  ngOnInit() {
      console.log(this.router.url);
  }


  selectedMenu(menu) {
    this.activeMenu = menu;
}

}
